<?php
/**
 * TimoPHP a Fast Simple Smart PHP FrameWork
 * Author: Tommy 863758705@qq.com
 * Link: http://www.TimoPHP.com/
 * Since: 2016
 */

if (!function_exists('p')) {
    function p($data, $stop = true)
    {
        static $times = 0;
        if ($times == 0) {
            echo '<pre style="font-family: Consolas;">';
        }
        $times++;
        if (is_array($data)) {
            print_r($data);
        } else {
            var_dump($data);
        }
        if ($times == 0) {
            echo '</pre>';
        }
        echo '<hr>';
        $stop && exit;
    }
}

if (!function_exists('pp')) {
    function pp($data)
    {
        p($data, false);
    }
}